package org.jeecg.modules.controller.questions;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.modules.questions.entity.HistoryInfo;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class QuestionVO {
    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**题号*/
    @Excel(name = "题号", width = 15)
    @ApiModelProperty(value = "题号")
    private String questionNumber;
    /**标题*/
    @Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String title;
    /**父id*/
    @Excel(name = "父id", width = 15)
    @ApiModelProperty(value = "父id")
    private String parentId;
    private List<AnswerVO> answerList;
    /**templateId*/
    @Excel(name = "templateId", width = 15)
    @ApiModelProperty(value = "templateId")
    private String templateId;
    /**默认跳转下一题*/
    @Excel(name = "默认跳转下一题", width = 15)
    @ApiModelProperty(value = "默认跳转下一题")
    private Integer jumpQuestion;
    /**历史id*/
    @Excel(name = "历史id", width = 15)
    @ApiModelProperty(value = "历史id")
    private String historyId;
    /**历史题目id*/
    @Excel(name = "历史题目id", width = 15)
    @ApiModelProperty(value = "历史题目id")
    private String questionId;

    /**问卷描述*/
    @Excel(name = "问卷描述", width = 15)
    @ApiModelProperty(value = "问卷描述")
    private String templateDescribe;
    /**类型模板、问题、答案 */
    @Excel(name = "类型模板、问题、答案 ", width = 15)
    @ApiModelProperty(value = "类型模板、问题、答案 ")
    private String type;
    /**标签*/
    @Excel(name = "标签", width = 15)
    @ApiModelProperty(value = "标签")
    private String labelName;
    /**模板类型*/
    @Excel(name = "模板类型", width = 15)
    @ApiModelProperty(value = "模板类型")
    private String templateType;
    /**答卷次数*/
    @Excel(name = "答卷次数", width = 15)
    @ApiModelProperty(value = "答卷次数")
    private Integer count;
    /**发布*/
    @Excel(name = "发布", width = 15)
    @ApiModelProperty(value = "发布")
    private String isRelease;
    /**发布时间*/
    @Excel(name = "发布时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "发布时间")
    private Date releaseTime;
    /**必答题*/
    @Excel(name = "必答题", width = 15)
    @ApiModelProperty(value = "必答题")
    private String isWillAnswer;
    /**是否显示序号*/
    @Excel(name = "是否显示序号", width = 15)
    @ApiModelProperty(value = "是否显示序号")
    private String isShowNumber;
    /**默认文本*/
    @Excel(name = "默认文本", width = 15)
    @ApiModelProperty(value = "默认文本")
    private String defaultText;
    /**格式限制*/
    @Excel(name = "格式限制", width = 15)
    @ApiModelProperty(value = "格式限制")
    private String formatLimit;
    /**最小字数*/
    @Excel(name = "最小字数", width = 15)
    @ApiModelProperty(value = "最小字数")
    private Integer minWords;
    /**最多字数*/
    @Excel(name = "最多字数", width = 15)
    @ApiModelProperty(value = "最多字数")
    private Integer maxWords;
    /**删除*/
    @Excel(name = "删除", width = 15)
    @ApiModelProperty(value = "删除")
    private String invalid;
    /**答案*/
    @Excel(name = "答案", width = 15)
    @ApiModelProperty(value = "答案")
    private String answer;
    private String openid;
    /**问题1 无答案，2有答案 ，3其他 */
    @Excel(name = "类型模板、问题、答案 ", width = 15)
    @ApiModelProperty(value = "类型模板、问题、答案 ")
    private String questionType;
    private String intoQuestion;
    private List<HistoryInfo> infos;
    private String infoId;
    private String isOver;
    private String isEnd;

}
